package com.usooft.metaTalent.core.base.log;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class LogUtil {

    @ConditionalOnLogType
    public void info(String msg) {
        log.info(msg);
    }

    @ConditionalOnLogType
    public void info(String msg, Object... args) {
        log.info(msg, args);
    }

    @ConditionalOnLogType(LogType.ERROR)
    public void error(String msg) {
        log.error(msg);
    }

}
